package org.erp.product.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.erp.common.page.PageReq;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 接驳记录查询请求实体
 *
 * @author libin
 * @version 1.0
 * @description: 接驳记录查询请求实体
 * @date 2025/11/14 15:09
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ConnectLogQueryBo extends PageReq {
    /**
     * 租户id
     */
    private Long tenantId;
    /**
     * 操作类型
     */
    @NotNull
    private Integer transferType;
    /**
     * 操作后状态
     */
    private Integer newStatus;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
}
